package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.OrdersPageQueryDTO;
import com.sky.entity.OrderDetail;
import com.sky.vo.OrderVO;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: XJH
 * @Description: TODO
 * @Date: 2025/6/9 10:38
 * @Version: 1.0
 */
@Mapper
public interface OrderDetailMapper {
    /**
     * 向订单明细表批量插入
     * @param orderDetailList
     */
    void insertBantch(List<OrderDetail> orderDetailList);

    /**
     * 历史订单详情查询
     * @param orderId
     * @return
     */
    List<OrderDetail> getByOrderId(Long orderId);
}
